<nav class="tm-navbar uk-navbar uk-navbar-attached">
  <div class="uk-container" style="max-width: 100%;">


    <ul class="uk-navbar-nav uk-hidden-small">
      <!--<li><a href="documentation_get-started.html">开始使用</a></li>-->
      <!--<li class="uk-active"><a href="core.html">核心组件</a></li>-->
      <!--<li><a href="components.html">附加组件</a></li>-->
      <!--<li><a href="customizer.html">定制工具</a></li>-->
      <!--<li><a href="../showcase/index.html">案例展示</a></li>-->
      <!--<li><a href="tutorials.html">视频教程</a></li>-->
    </ul>

    <a href="#tm-offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas=""></a>

    <div class="uk-navbar-flip">

      <a href="" class="uk-navbar-toggle uk-navbar-toggle-alt uk-visible-small"></a>

      <ul class="uk-navbar-nav uk-hidden-small">
        <li>
          <%=link_to frontend_root_path ,class: "uk-button tk-button-primary",target: "_blank" do%>
            <i class="uk-icon-home"></i> 前台
          <% end %>
        </li>
        <li class="uk-parent" data-uk-dropdown>
          <a href="">
            <%= @current_admin.name %>
            <%= image_tag @current_admin.gravatar_url,class:'uk-border-circle  pull-left', style: 'width:25px;margin-top:3px;margin-right:5px' %>
            <i class="uk-icon-caret-down"></i>
          </a>

          <div class="uk-dropdown uk-dropdown-navbar uk-dropdown-bottom" style="top: 40px; left: 0px;">
            <ul class="uk-nav uk-nav-navbar">
              <li>
                <%= link_to edit_backend_password_path do %>
                    <i class="uk-icon-gear"></i> 修改密码
                <% end %>
              </li>
              <!--<li class="uk-nav-header">Header</li>-->
              <!--<li><a href="#">Item</a></li>-->
              <!--<li><a href="#">Another item</a></li>-->
              <li>
                <%= link_to backend_logout_path, method: :delete do %>
                    <i class="uk-icon-sign-out"></i> 退出
                <% end %>
              </li>
            </ul>
          </div>

        </li>
      </ul>

    </div>
  </div>

</nav>
